//
// C++ Interface: qtactivityview
//
// Description: 
//
//
// Author: Willi Ballenthin <wilbal1087@gmail.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef QTACTIVITYVIEW_H
#define QTACTIVITYVIEW_H

#include <QWidget>
#include <QtCore>
#include <QtGui>
#include "activity.h"
#include "ui_activityviewwidget.h"

/**
	@author Willi Ballenthin <wilbal1087@gmail.com>
*/
class ActivityViewWidget : public QWidget
{
Q_OBJECT
public:
    ActivityViewWidget(QWidget *parent = 0);
    ActivityViewWidget(QVector<Activity>* activities, QWidget *parent = 0);
    ~ActivityViewWidget();

    signals:
        void needEdit(Activity* activity);

    public slots:
        void checkButtons();
        void updateView();
        void nextActivity();
        void prevActivity();
        void showActivity(QDate date);
        void showActivity(int index);
        void setActivities(QVector<Activity>* vector);
        void editActivity();
        void newActivity();


    private:
        QVector<Activity>* activities;
        Activity* activity;
        int index;
        Ui::ActivityViewWidget ui;
};

#endif
